<!-- 报名备注的编辑弹窗 -->
<template>
  <ele-modal
    form
    :width="800"
    :model-value="modelValue"
    title="查看图片"
    @update:modelValue="updateModelValue"
  >
    <el-image
      v-for="item in props.imagesList"
      :key="item"
      :src="item"
      :preview-src-list="imagesList"
    />
  </ele-modal>
</template>

<script setup>
  import { watch } from 'vue';
  const emit = defineEmits(['done', 'update:modelValue']);
  const props = defineProps({
    /** 弹窗是否打开 */
    modelValue: Boolean,
    /** 修改回显的数据 */
    imagesList: Object
  });
  /** 更新modelValue */
  const updateModelValue = (value) => {
    emit('update:modelValue', value);
  };
</script>
